<?php

    //获取子代id
    function get_idchild($id){
        $cate=get_cate();
        $arr=array();
        foreach($cate as $v){
            if($v['pid']==$id){
                $arr[]=$v['id'];
            }
        }
        return $arr;
    }

